home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CU Amiga Super CD-ROM 6
/
CU Amiga Magazine's Super CD-ROM 06 (1996)(EMAP Images)(GB)(Track 1 of 4)[!][issue 1997-01].iso
/
cucd
/
readers
/
utils
/
cinterpreter
/
cint.doc
< prev
next >
Wrap
Text File
|
1996-11-02
|
2KB
|
65 lines
This is another simple, small but useful utility. I wrote it when
I started to program in C, as an exercise to help me write pointers,
definitions, file management and text crunching. It was originally
written in DICE C v2.0.35 (the freeware version), recompiled using
Lattice C 5.0 and this version is compiled using SAS/C v6.50.
If you have any ideas, comments, suggestions or just want to say
something, feel free to write me a letter. My address is:
Manolis S Pappas
Argiroupoleos 14
14231 Nea Ionia
Athens GREECE
You can also contact me in several Greek BBS's, including Acrobase,
Astra, Acropolis and G.A.T.E BBS. If you are using Acrobase,Acropolis
or G.A.T.E, my nickname is "FRONTIER".
------------------------------------------------------------------------------
This program is very simple to use. It is a rather limited C interpreter.
This is not a program to test your masterpieces in C; you have to listen
to your compiler for this. however it can be useful for someone who wants
to learn elementary C.
Typical usage:
CInt sum.c
CInt loop.c
Note that CInt does not do ANY checks for the extension of a filename
so you can give to it any filename you want, but if your filename has
an extension, you must provide this also.
As mentioned before, this interpreter has some limitations.
Here's the limitations:
o only supports "char" and "int" data types.
o no structures are allowed.
o the constructs i++, ++i, --i, and i-- are not supported.
use i = i + 1 etc. instead.
o nested for loops must be delineated with '{' and '}'
There are also a few built in functions.
o puts - put a string such as "Hello World" on the console.
o print - put an integer or string on the console. IE
print(1) will print "1" on the console.
print("Hello world") will print "Hello World".
o getnum - get a signed integer from the console.
------------------------------------------------------------------------------
Updated 2.11.96 :
- recompiled with SAS/C v6.56
- various bug fixes
Manolis S Pappas